package com.baitengsoft.patentapimonitor.api.model.dto;

import com.baitengsoft.patentapimonitor.common.utils.DateUtils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author Chen 2018/2/5
 */
public class WebInvalidAnalysisInfoDto {
    private Integer num;
    private String patNum;
    private String applyPersonLast;
    private String patName;
    private String patTypeName;
    private String expiryDate;
    private String effectReason;
    private String maintenanceYear;//维持年限

    @WebDto.ExcelResources(title = "序号", order = 1)
    public Integer getNum() {
        return num;
    }

    @WebDto.ExcelResources(title = "申请号", order = 2)
    public String getPatNum() {
        return patNum;
    }

    @WebDto.ExcelResources(title = "权利人", order = 3)
    public String getApplyPersonLast() {
        return applyPersonLast;
    }

    @WebDto.ExcelResources(title = "专利名称", order = 4)
    public String getPatName() {
        return patName;
    }

    @WebDto.ExcelResources(title = "专利类型", order = 5)
    public String getPatTypeName() {
        return patTypeName;
    }

    @WebDto.ExcelResources(title = "失效日期", order = 6)
    public String getExpiryDate() {
        return expiryDate;
    }

    @WebDto.ExcelResources(title = "失效原因", order = 8)
    public String getEffectReason() {
        return effectReason;
    }

    @WebDto.ExcelResources(title = "维持年限", order = 7)
    public String getMaintenanceYear() {
        return maintenanceYear;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public void setPatNum(String patNum) {
        this.patNum = patNum;
    }

    public void setApplyPersonLast(String applyPersonLast) {
        this.applyPersonLast = applyPersonLast;
    }

    public void setPatName(String patName) {
        this.patName = patName;
    }

    public void setPatTypeName(String patTypeName) {
        this.patTypeName = patTypeName;
    }

    public void setExpiryDate(Date expiryDate) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy年MM月dd日");
        this.expiryDate = format.format(expiryDate);
    }

    public void setEffectReason(String effectReason) {
        this.effectReason = effectReason;
    }

    public void setMaintenanceYear(String maintenanceYear) {
        this.maintenanceYear = maintenanceYear;
    }
}
